package com.wwj.factory;

import com.wwj.nativeInterface.INJServer;
import com.wwj.nativecode.NxServiceApiDemo;
import com.wwj.nativemodel.NJServerModel;

public class NJServiceFactory {
	
	public static INJServer CreateServer(String ip, int port){
		
		NxServiceApiDemo instance = new NxServiceApiDemo();
		//System.out.println(instance.NJS_CreateServerHandle(ip, port));
		int handle = instance.NJS_CreateServerHandle(ip, port);
		//return new NJServerModel((INJServer)handle);
		return new NJServerModel(handle);
	}

}
